package com.yaoran.userauth.dao;

import com.yaoran.userauth.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {
    void addUser(User user);

    List<User> listUser(String name);

    void updateUser(User user);

    void deleteUser(Long id);

    void deleteManyUsers(Long[] ids);

    User getUser(Long id);
}
